package org.example.utils;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Copyright: Copyright (c) 2022 Asiainfo
 *
 * @ClassName: com.zxp.springsecurity.utils.WebUtils
 * @Description: 该类的功能描述
 * @version: v1.0.0
 * @author: 炫沙糖桔的鹏仔
 * @date: 2022/8/8 16:38
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2022/8/8      炫沙糖桔的鹏仔          v1.0.0               修改原因
 */
public class WebUtils {
    public static String renderstring(HttpServletResponse response,String str) throws IOException {
        response.setContentType("application/json;charset=utf-8");
        response.setStatus(200);
        response.getWriter().print(str);
        return null;
    }
}
